﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Elderos.Highlight.Search;

namespace Elderos.Highlight
{
    public class ContiniousResult : RuleResult
    {
        private readonly double _coef;

        public ContiniousResult(string rulename, double coef)
            : base(new []{rulename})
        {
            if (double.IsNaN(coef) || double.IsInfinity(coef))
                Console.WriteLine(rulename + "!!!");
            _coef = coef;
        }

        public override IEnumerable<FactorValue> GetFactorValues()
        {
            yield return new FactorValue(RuleNames[0], _coef);
        }
    }
}
